using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace UIDesigner
{
  class FormDataMaker
  {
    public static string OutForm(Form form)
    {
      Color c;
      string str = "";
      str += "タイトル=" + form.Text + "\r\n";
      str += "幅=" + form.Width + "\r\n";
      str += "高さ=" + form.Height + "\r\n";
      c = form.BackColor;
      str += "背景色=(" + c.R + "," + c.G + "," + c.B + ")" + c.Name + "\r\n";
      c = form.ForeColor;
      str += "前景色=(" + c.R + "," + c.G + "," + c.B + ")" + c.Name + "\r\n";
      str += "境界線スタイル=" + form.FormBorderStyle.ToString() + "\r\n";
      str += "最大化ボタン=" + form.MaximizeBox.ToString() + "\r\n";
      str += "境界線スタイル=" + form.FormBorderStyle.ToString() +"\r\n";
      str += "ウィンドウ状態=" + form.WindowState.ToString() + "\r\n";
      str += "MDI=" + form.IsMdiContainer.ToString() + "\r\n";
      str += "タスクバー表示=" + form.ShowInTaskbar.ToString() + "\r\n";
      str += "アイコン表示=" + form.ShowIcon.ToString() + "\r\n";
      str += "前面表示=" + form.TopMost.ToString() + "\r\n";
      str += "ドロップ=" + form.AllowDrop.ToString() + "\r\n";
      return str;
    }

  }
}
